<html>
<head>
    <style type="text/css">
        .box {
            border-top: 3px solid #ffffff;
        }

        #config-box div a.btn {
            color: #fff;
            text-decoration: none;
        }

        #config-box thead > tr > th.wdbt {
            width: 15%;
        }

        #config-box thead > tr > th.wd70 {
            width: 70%;
        }

        @media (max-width: 970px) {
            #config-box thead > tr > th.wdbt {
                width: 30%;
            }

            #config-box thead > tr > th.mob-none {
                display: none;
            }

            #config-box tbody > tr > td.mob-none {
                display: none;
            }
        }
    </style>
</head>
<body>

<div id="config-box">
    <div class="panel panel-default panel-intro">
        <div class="panel-heading">
            <div class="panel-lead"><em>首页配置（Home Page Configuration）</em>用于管理首页公司简介数据，启用英文后切换English管理英文数据
            </div>
            {if $switch_lang == '1'}
            <ul class="nav nav-tabs">
                <li class="active"><a href="#EditCN" data-toggle="tab">简体中文</a></li>
                <li class=""><a href="#EditEN" data-toggle="tab">English</a></li>
            </ul>
            {/if}
        </div>

        <div id="myTabContent" class="tab-content">
            <!-- 中文编辑表单 -->
            <div class="tab-pane fade active in" id="EditCN">
                <form id="aboutCN-form" class="edit-form form-horizontal" role="form"
                      data-toggle="validator" method="POST" action="{:url('Admin/wwh/Home/HomeCN')}">
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" style="padding-left: 0; padding-right: 0;">
                        <div class="box {if $switch_lang == '1'}box-success{/if}">
                            <div class="panel-body">
                                <div class="alert alert-success-light">
                                    <b>公司简介</b><br>
                                </div>
                                <table class="table table-striped">
                                    <thead>
                                    <tr>
                                        <th class="wdbt">标题</th>
                                        <th class="wd70">值</th>
                                        <th width="15%" class="mob-none">变量名</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <td>数字介绍1</td>
                                        <td>
                                            <div class="row">
                                                <div class="col-sm-2">
                                                    <input type="text" name="num1" value="{$dataCN.num1|htmlentities}"
                                                           class="form-control"/>
                                                </div>
                                                <div class="col-sm-2">
                                                    <input type="text" name="unit1" value="{$dataCN.unit1|htmlentities}"
                                                           class="form-control"/>
                                                </div>
                                                <div class="col-sm-4">
                                                    <input type="text" name="introduce1"
                                                           value="{$dataCN.introduce1|htmlentities}"
                                                           class="form-control"/>
                                                </div>
                                            </div>
                                        </td>
                                        <td class="mob-none">{literal}{$home.num1}{/literal}<br>{literal}{$home.unit1}{/literal}<br>{literal}{$home.introduce1}{/literal}
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>数字介绍2</td>
                                        <td>
                                            <div class="row">
                                                <div class="col-sm-2">
                                                    <input type="text" name="num2" value="{$dataCN.num2|htmlentities}"
                                                           class="form-control"/>
                                                </div>
                                                <div class="col-sm-2">
                                                    <input type="text" name="unit2" value="{$dataCN.unit2|htmlentities}"
                                                           class="form-control"/>
                                                </div>
                                                <div class="col-sm-4">
                                                    <input type="text" name="introduce2"
                                                           value="{$dataCN.introduce2|htmlentities}"
                                                           class="form-control"/>
                                                </div>
                                            </div>
                                        </td>
                                        <td class="mob-none">{literal}{$home.num2}{/literal}<br>{literal}{$home.unit2}{/literal}<br>{literal}{$home.introduce2}{/literal}
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>数字介绍3</td>
                                        <td>
                                            <div class="row">
                                                <div class="col-sm-2">
                                                    <input type="text" name="num3" value="{$dataCN.num3|htmlentities}"
                                                           class="form-control"/>
                                                </div>
                                                <div class="col-sm-2">
                                                    <input type="text" name="unit3" value="{$dataCN.unit3|htmlentities}"
                                                           class="form-control"/>
                                                </div>
                                                <div class="col-sm-4">
                                                    <input type="text" name="introduce3"
                                                           value="{$dataCN.introduce3|htmlentities}"
                                                           class="form-control"/>
                                                </div>
                                            </div>
                                        </td>
                                        <td class="mob-none">{literal}{$home.num3}{/literal}<br>{literal}{$home.unit3}{/literal}<br>{literal}{$home.introduce3}{/literal}
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>公司名称</td>
                                        <td>
                                            <div class="row">
                                                <div class="col-sm-8 col-xs-12">
                                                    <input type="text" name="about_title"
                                                           value="{$dataCN.about_title|htmlentities}"
                                                           class="form-control"/>
                                                </div>
                                            </div>
                                        </td>
                                        <td class="mob-none">{literal}{$home.about_title}{/literal}</td>
                                    </tr>
                                    <tr>
                                        <td>关于介绍</td>
                                        <td>
                                            <div class="row">
                                                <div class="col-sm-8 col-xs-12">
                                                    <textarea id="c-introduction" name="introduction"
                                                              class="form-control" rows="10" cols="50">{$dataCN.introduction|htmlentities}</textarea>
                                                </div>
                                            </div>
                                        </td>
                                        <td class="mob-none">{literal}{$home.introduction}{/literal}</td>
                                    </tr>
                                    <tr>
                                        <td>简介图片</td>
                                        <td>
                                            <div class="row">
                                                <div class="col-sm-8 col-xs-12">
                                                    <div class="form-inline">
                                                        <input id="c-image" class="form-control" size="35" name="image"
                                                               placeholder="推荐尺寸：960x700" type="text"
                                                               value="{$dataCN.image|htmlentities}" data-tip="">
                                                        <span><button type="button" id="plupload-image"
                                                                      class="btn btn-danger plupload"
                                                                      data-input-id="c-image" data-mimetype="image/*"
                                                                      data-multiple="false" data-preview-id="p-image"><i
                                                                class="fa fa-upload"></i> 上传</button></span>
                                                        <span><button type="button" id="fachoose-image"
                                                                      class="btn btn-primary fachoose"
                                                                      data-input-id="c-image" data-mimetype="image/*"
                                                                      data-multiple="false"><i class="fa fa-list"></i> 选择</button></span>
                                                        <ul class="row list-inline plupload-preview" id="p-image"></ul>
                                                    </div>
                                                </div>
                                            </div>
                                        </td>
                                        <td class="mob-none">{literal}{$home.image}{/literal}</td>
                                    </tr>
                                    </tbody>
                                    <tfoot>
                                    <tr>
                                        <td></td>
                                        <td>
                                            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}
                                            </button>
                                            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}
                                            </button>
                                        </td>
                                        <td></td>
                                    </tr>
                                    </tfoot>
                                </table>
                            </div>
                        </div>
                    </div>
                </form>
            </div>

            <!-- 英文编辑表单 -->
            {if $switch_lang == '1'}
            <div class="tab-pane fade" id="EditEN">
                <form id="aboutEN-form" class="edit-form form-horizontal" role="form"
                      data-toggle="validator" method="POST" action="{:url('Admin/wwh/Home/HomeEN')}">
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" style="padding-left: 0; padding-right: 0;">
                        <div class="box box-warning">
                            <div class="panel-body">
                                <div class="alert alert-danger-light">
                                    <b>公司简介</b><br>
                                </div>
                                <table class="table table-striped">
                                    <thead>
                                    <tr>
                                        <th class="wdbt">标题</th>
                                        <th class="wd70">值</th>
                                        <th width="15%" class="mob-none">变量名</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <td>数字介绍1</td>
                                        <td>
                                            <div class="row">
                                                <div class="col-sm-2">
                                                    <input type="text" name="num1" value="{$dataEN.num1|htmlentities}"
                                                           class="form-control"/>
                                                </div>
                                                <div class="col-sm-2">
                                                    <input type="text" name="unit1" value="{$dataEN.unit1|htmlentities}"
                                                           class="form-control"/>
                                                </div>
                                                <div class="col-sm-4">
                                                    <input type="text" name="introduce1"
                                                           value="{$dataEN.introduce1|htmlentities}"
                                                           class="form-control"/>
                                                </div>
                                            </div>
                                        </td>
                                        <td class="mob-none">{literal}{$home.num1}{/literal}<br>{literal}{$home.unit1}{/literal}<br>{literal}{$home.introduce1}{/literal}
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>数字介绍2</td>
                                        <td>
                                            <div class="row">
                                                <div class="col-sm-2">
                                                    <input type="text" name="num2" value="{$dataEN.num2|htmlentities}"
                                                           class="form-control"/>
                                                </div>
                                                <div class="col-sm-2">
                                                    <input type="text" name="unit2" value="{$dataEN.unit2|htmlentities}"
                                                           class="form-control"/>
                                                </div>
                                                <div class="col-sm-4">
                                                    <input type="text" name="introduce2"
                                                           value="{$dataEN.introduce2|htmlentities}"
                                                           class="form-control"/>
                                                </div>
                                            </div>
                                        </td>
                                        <td class="mob-none">{literal}{$home.num2}{/literal}<br>{literal}{$home.unit2}{/literal}<br>{literal}{$home.introduce2}{/literal}
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>数字介绍3</td>
                                        <td>
                                            <div class="row">
                                                <div class="col-sm-2">
                                                    <input type="text" name="num3" value="{$dataEN.num3|htmlentities}"
                                                           class="form-control"/>
                                                </div>
                                                <div class="col-sm-2">
                                                    <input type="text" name="unit3" value="{$dataEN.unit3|htmlentities}"
                                                           class="form-control"/>
                                                </div>
                                                <div class="col-sm-4">
                                                    <input type="text" name="introduce3"
                                                           value="{$dataEN.introduce3|htmlentities}"
                                                           class="form-control"/>
                                                </div>
                                            </div>
                                        </td>
                                        <td class="mob-none">{literal}{$home.num3}{/literal}<br>{literal}{$home.unit3}{/literal}<br>{literal}{$home.introduce3}{/literal}
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>公司名称</td>
                                        <td>
                                            <div class="row">
                                                <div class="col-sm-8 col-xs-12">
                                                    <input type="text" name="about_title"
                                                           value="{$dataEN.about_title|htmlentities}"
                                                           class="form-control"/>
                                                </div>
                                            </div>
                                        </td>
                                        <td class="mob-none">{literal}{$home.about_title}{/literal}</td>
                                    </tr>
                                    <tr>
                                        <td>关于介绍</td>
                                        <td>
                                            <div class="row">
                                                <div class="col-sm-8 col-xs-12">
                                                    <textarea id="c-introduction_en" name="introduction"
                                                              class="form-control" rows="10" cols="50">{$dataEN.introduction|htmlentities}</textarea>
                                                </div>
                                            </div>
                                        </td>
                                        <td class="mob-none">{literal}{$home.introduction}{/literal}</td>
                                    </tr>
                                    <tr>
                                        <td>简介图片</td>
                                        <td>
                                            <div class="row">
                                                <div class="col-sm-8 col-xs-12">
                                                    <div class="form-inline">
                                                        <input id="c-image_en" class="form-control" size="35"
                                                               name="image"
                                                               placeholder="推荐尺寸：960x700" type="text"
                                                               value="{$dataEN.image|htmlentities}" data-tip="">
                                                        <span><button type="button" id="plupload-image_en"
                                                                      class="btn btn-danger plupload"
                                                                      data-input-id="c-image_en" data-mimetype="image/*"
                                                                      data-multiple="false"
                                                                      data-preview-id="p-image_en"><i
                                                                class="fa fa-upload"></i> 上传</button></span>
                                                        <span><button type="button" id="fachoose-image_en"
                                                                      class="btn btn-primary fachoose"
                                                                      data-input-id="c-image_en" data-mimetype="image/*"
                                                                      data-multiple="false"><i class="fa fa-list"></i> 选择</button></span>
                                                        <ul class="row list-inline plupload-preview"
                                                            id="p-image_en"></ul>
                                                    </div>
                                                </div>
                                            </div>
                                        </td>
                                        <td class="mob-none">{literal}{$home.image}{/literal}</td>
                                    </tr>
                                    </tbody>
                                    <tfoot>
                                    <tr>
                                        <td></td>
                                        <td>
                                            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}
                                            </button>
                                            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}
                                            </button>
                                        </td>
                                        <td></td>
                                    </tr>
                                    </tfoot>
                                </table>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            {/if}
        </div>

    </div>

</div>
</body>
</html>
